package com.bruce.starts.demo.log;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

public class UserLog4j2 {
    private static final Log logger = LogFactory.getLog(UserLog4j2.class);
    private static final Logger logger2 = LogManager.getLogger(UserLog4j2.class);

    public static void main(String[] args) {
        logger.error("use jcl + log4j2 to log");
        logger.info("use jcl + log4j2 to log");
        logger2.info("use log4j2 to log");
    }
}
